TEX = $(wildcard *.tex) ${wildcard sections/*.tex}
BIB = biblio.bib
FIGS = $(wildcard figs/*.tex)

main.pdf: $(TEX) $(BIB) $(FIGS)
	pdflatex main
	bibtex main
	pdflatex main
	pdflatex main

clean:
	rm -f *.aux *.bbl *.blg *.log *.out main.pdf
